<template>
	<view class="page">
		<web-view class="webview" :src="path"></web-view>
	</view>
</template>

<script>
	import {APP_NAME} from '@/config.js' 
	export default {
		name: 'demo',
		data() {
			return {
				type:'',
				path:'',
				isLogin: false, 
				userInfo: uni.getStorageSync('userInfo'),
				app_name:APP_NAME ,
				version:getApp().globalData.version
			}
		},
		async onShow() { 
		},
		async onLoad(params) { 
			console.log(params)
			this.path=params.url;
			this.type=params.type;
			if(this.type==1){ 
				uni.setNavigationBarTitle({
					title:'隐私政策'
				})				 
			} 
					
		},
		methods: {
			 
		},
		computed: {

		},
		components: {

		},
		onUnload() {
			 
		},
	}
</script>

<style lang="less" scoped> 
	.webview {
		width: 100%;
		height: 100%;
	}
	 
</style>
